package com.demo.springBootDemo05.utils;

public class CommonResult<T> {
	private T data;
	private Boolean success = Boolean.FALSE;
	private String msg;

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
		setSuccess(Boolean.TRUE);
	}

	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
		setSuccess(Boolean.FALSE);
	}

}
